<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>我的案例</title>
<link rel="stylesheet" type="text/css" href="css/lib/swiper.min.css"/>
<link rel="stylesheet" type="text/css" href="css/lib/doumee.css"/>
<link rel="stylesheet" type="text/css" href="css/public.css"/>
<link rel="stylesheet" type="text/css" href="css/lib/dialog.css"/>
<link rel="stylesheet" type="text/css" href="css/lib/picker.css"/>
<link rel="stylesheet" type="text/css" href="css/caseMod.css"/>
<script src="js/lib/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/vue-2.5.17.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/doumee.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/dialog.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/picker.js" type="text/javascript" charset="utf-8"></script>
<script src="js/data.js" type="text/javascript" charset="utf-8"></script>
<script src="js/personal_case.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>


<header class="header">
	<a class="left_icon back_btn"></a>
	<h4 class="title">我的案例</h4>
	<a href="contact_case.html" class="right_icon">去关联</a>
</header>
	
<div id="doumee">	
	<!--案例筛选项-->
	<div class="bottom-line flex-row h5" id="screenMod" style="top: 44px;">
		<div class="nav-box flex-full">
			<a :class="type == 0 ? 'on' : ''" @click="caseTab(0)">厨柜</a>
			<a :class="type == 1 ? 'on' : ''" @click="caseTab(1)">全屋</a>
		</div>
		<dl class="sel left-line flex-row" @click="check">
			<dt class="dm-wrap">筛选</dt>
			<dd class="animate"></dd>
		</dl>
	</div>
	
	<div class="swiper-container Main" id="Main" style="top: 88px;">
		<div class="swiper-wrapper">
			<div class="swiper-slide content">
				
				<div class="children">
					
					<!--案例-->
					<ul class="case-box dm-mb" v-for="(item,index) in caseData" v-if="caseData.length > 0">
						<li class="cover photo" data-rate='4/3'>
							<img :src="item.cover" />
						</li>
						<li class="flex-row info">
							<h5 class="name dm-wrap tl flex-full">{{item.name}}</h5>
							<a class="btn" @click="cancelFollow(item.id)">取消关联</a>
						</li>
					</ul>
					
					<!--空数据-->
					<div class="emptyMod nullMod" v-if="caseData.length == 0 || !caseData">
						<div class="icon">
							<img src="image/empty/user_empty.png" />
						</div>
						<div class="txt">你还没有关联案例,点击右上角快去关联!</div>
					</div>
					<!--空数据 end-->
					
					<!--网络错误-->
					<div class="emptyMod netError" style="display: none;">
						<div class="icon">
							<img src="image/empty/netError.png" />
						</div>
						<div class="txt">网络开小差了，快去检查一下你的网络</div>
					</div>
					<!--网络错误 end-->
					
					<!--加载失败-->
					<div class="emptyMod netError" style="display: none;">
						<div class="icon">
							<img src="image/empty/loadError.png" />
						</div>
						<div class="txt">哎呀,页面没有加载出来!<br />尝试重新加载吧</div>
					</div>
					<!--加载失败 end-->
					
				</div>
				
			</div>
		</div>
	</div>
	
	<!--筛选项-->
	<div class="subMain animate" id="screenMask">
		<footer class="footer top-line tc h4 main-line flex-row" id="allCaseBtn">
			<a class="reset flex-full" @click="resetOpt">重置</a>
			<a class="enter flex-full" @click="enterOpt">确定</a>
		</footer>
		<div class="swiper-container Main" id="caseAllSel">
			<div class="swiper-wrapper">
				<div class="swiper-slide content">
					
					<div class="children">
						<template v-for="(item,index) in arr">
							<h5 class="dm-title bottom-line">{{item.name}}</h5>
							<div class="list h5">
								<span :class="sel[index] == val ? 'on bottom-line' : 'bottom-line' " @click="checkOpt(index,val)" v-for="(sub,val) in item.list">{{sub}}</span>
							</div>
						</template>
					</div>
					
				</div>
			</div>
		</div>
		
	</div>

</div>

<script type="text/javascript">
//设置问题类模块的高度
$(".emptyMod").height($("#Main").height());
</script>

</body>
</html>
